package com.iguo.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iguo.news.entity.NewScore;
import com.iguo.news.entity.NewWithScore;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewScoreMapper extends BaseMapper<NewScore> {
  void insertNewScore(NewScore newScore);
  List<NewWithScore> getNewWithScoreByUserId(Integer userId);

  Integer insetScore(NewScore newScore);
}
